package icu.bughub.app.app.model.service

import icu.bughub.app.app.model.NetWork
import icu.bughub.app.app.model.entity.CategoryResponse
import icu.bughub.app.app.model.entity.SwiperResponse
import retrofit2.http.GET

interface HomeService {

    @GET("category/list")
    suspend fun categoryList(): CategoryResponse

    @GET("recommand/banner")
    suspend fun getSwiperData(): SwiperResponse

    //获取文章列表
    fun getArticleList()


    companion object {
        fun instance(): HomeService {
            return NetWork.createService(HomeService::class.java)
        }
    }
}